/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class ActionEntity {
    @NotNull
    private final String actionName;
    private final int actionType;
    @NotNull
    private final String answerAndAnalyze;
    private final int courseID;
    @Nullable
    private final List<Konwledge> knowledgeVos;
    private final boolean needReplenishAnswer;
    @NotNull
    private final String questionAndOption;
    @NotNull
    private final String questionId;
    @NotNull
    private final String questionType;
    @Nullable
    private final List<Video> videoVos;

    public ActionEntity(int i2, @NotNull String actionName, @NotNull String questionId, int i3, @NotNull String questionType, @NotNull String questionAndOption, @NotNull String answerAndAnalyze, boolean z, @Nullable List<Video> list, @Nullable List<Konwledge> list2) {
        Intrinsics.checkNotNullParameter(actionName, "actionName");
        Intrinsics.checkNotNullParameter(questionId, "questionId");
        Intrinsics.checkNotNullParameter(questionType, "questionType");
        Intrinsics.checkNotNullParameter(questionAndOption, "questionAndOption");
        Intrinsics.checkNotNullParameter(answerAndAnalyze, "answerAndAnalyze");
        this.actionType = i2;
        this.actionName = actionName;
        this.questionId = questionId;
        this.courseID = i3;
        this.questionType = questionType;
        this.questionAndOption = questionAndOption;
        this.answerAndAnalyze = answerAndAnalyze;
        this.needReplenishAnswer = z;
        this.videoVos = list;
        this.knowledgeVos = list2;
    }

    public final int component1() {
        return this.actionType;
    }

    @Nullable
    public final List<Konwledge> component10() {
        return this.knowledgeVos;
    }

    @NotNull
    public final String component2() {
        return this.actionName;
    }

    @NotNull
    public final String component3() {
        return this.questionId;
    }

    public final int component4() {
        return this.courseID;
    }

    @NotNull
    public final String component5() {
        return this.questionType;
    }

    @NotNull
    public final String component6() {
        return this.questionAndOption;
    }

    @NotNull
    public final String component7() {
        return this.answerAndAnalyze;
    }

    public final boolean component8() {
        return this.needReplenishAnswer;
    }

    @Nullable
    public final List<Video> component9() {
        return this.videoVos;
    }

    @NotNull
    public final ActionEntity copy(int i2, @NotNull String actionName, @NotNull String questionId, int i3, @NotNull String questionType, @NotNull String questionAndOption, @NotNull String answerAndAnalyze, boolean z, @Nullable List<Video> list, @Nullable List<Konwledge> list2) {
        Intrinsics.checkNotNullParameter(actionName, "actionName");
        Intrinsics.checkNotNullParameter(questionId, "questionId");
        Intrinsics.checkNotNullParameter(questionType, "questionType");
        Intrinsics.checkNotNullParameter(questionAndOption, "questionAndOption");
        Intrinsics.checkNotNullParameter(answerAndAnalyze, "answerAndAnalyze");
        return new ActionEntity(i2, actionName, questionId, i3, questionType, questionAndOption, answerAndAnalyze, z, list, list2);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ActionEntity)) {
            return false;
        }
        ActionEntity actionEntity = (ActionEntity) obj;
        return this.actionType == actionEntity.actionType && Intrinsics.areEqual(this.actionName, actionEntity.actionName) && Intrinsics.areEqual(this.questionId, actionEntity.questionId) && this.courseID == actionEntity.courseID && Intrinsics.areEqual(this.questionType, actionEntity.questionType) && Intrinsics.areEqual(this.questionAndOption, actionEntity.questionAndOption) && Intrinsics.areEqual(this.answerAndAnalyze, actionEntity.answerAndAnalyze) && this.needReplenishAnswer == actionEntity.needReplenishAnswer && Intrinsics.areEqual(this.videoVos, actionEntity.videoVos) && Intrinsics.areEqual(this.knowledgeVos, actionEntity.knowledgeVos);
    }

    @NotNull
    public final String getActionName() {
        return this.actionName;
    }

    public final int getActionType() {
        return this.actionType;
    }

    @NotNull
    public final String getAnswerAndAnalyze() {
        return this.answerAndAnalyze;
    }

    public final int getCourseID() {
        return this.courseID;
    }

    @Nullable
    public final List<Konwledge> getKnowledgeVos() {
        return this.knowledgeVos;
    }

    public final boolean getNeedReplenishAnswer() {
        return this.needReplenishAnswer;
    }

    @NotNull
    public final String getQuestionAndOption() {
        return this.questionAndOption;
    }

    @NotNull
    public final String getQuestionId() {
        return this.questionId;
    }

    @NotNull
    public final String getQuestionType() {
        return this.questionType;
    }

    @Nullable
    public final List<Video> getVideoVos() {
        return this.videoVos;
    }

    public int hashCode() {
        int hashCode = ((((((((((((this.actionType * 31) + this.actionName.hashCode()) * 31) + this.questionId.hashCode()) * 31) + this.courseID) * 31) + this.questionType.hashCode()) * 31) + this.questionAndOption.hashCode()) * 31) + this.answerAndAnalyze.hashCode()) * 31;
        boolean z = this.needReplenishAnswer;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = (hashCode + i2) * 31;
        List<Video> list = this.videoVos;
        int i6 = 0;
        int hashCode2 = (i5 + (list == null ? 0 : list.hashCode())) * 31;
        List<Konwledge> list2 = this.knowledgeVos;
        if (list2 != null) {
            i6 = list2.hashCode();
        }
        return hashCode2 + i6;
    }

    @NotNull
    public String toString() {
        return "ActionEntity(actionType=" + this.actionType + ", actionName=" + this.actionName + ", questionId=" + this.questionId + ", courseID=" + this.courseID + ", questionType=" + this.questionType + ", questionAndOption=" + this.questionAndOption + ", answerAndAnalyze=" + this.answerAndAnalyze + ", needReplenishAnswer=" + this.needReplenishAnswer + ", videoVos=" + this.videoVos + ", knowledgeVos=" + this.knowledgeVos + ')';
    }
}